package com.module.bp.bus;

import java.awt.Color;

import com.dalonedrau.jogl.engine.Interface;
import com.dalonedrau.jogl.engine.ProjectConstants;
import com.dalonedrau.jogl.opengl.ui.view.LoadingView;
import com.module.bp.view.IntroView;
import com.module.bp.view.OverworldView;

/**
 * Game constants.
 * @author Donald
 */
public final class BPConstants extends ProjectConstants implements BPGlobals {
	/** flag indicating the project has been initialized. */
	private boolean	initialized	= false;
	/** Hidden constructor. */
	public BPConstants() {
		super.setInstance(this);
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void assignViews() {
		if (!initialized) {
			Interface.getInstance().setView(BPGlobals.VIEW_INTRO,
					new IntroView());
			Interface.getInstance().setView(BPGlobals.VIEW_LOADING,
					LoadingView.getInstance());
			Interface.getInstance().setView(BPGlobals.VIEW_WORLD_MAP,
					OverworldView.getInstance());
			initialized = true;
		}
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public Color getDefaultFontColor() {
		return Color.white;
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getFontH1() {
		return "lunchds_18";
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getFontH2() {
		return "lunchds_16";
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getFontTitle() {
		return "lunchds_24";
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public int getNumGameFonts() {
		return 6;
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getTextFileListing() {
		return "listing.txt";
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getTextFilePath() {
		return "com/cob/dat/text";
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getTooltipBorderClass() {
		return "com.ahq.main.TooltipBorder";
	}
}
